
message("Subdirectory:BUILD_SHARED_LIBS = ${BUILD_SHARED_LIBS}")

if(BUILD_SHARED_LIBS)
    add_library(AMath SHARED amath.cpp amath.h)
    if(CMAKE_GENERATOR MATCHES "Visual Studio")
        target_compile_definitions(AMath PRIVATE "EXPORTING_AMATH")    
    endif()
else()
    add_library(AMath STATIC amath.cpp amath.h)
endif()

target_include_directories(AMath INTERFACE .)